<#assign excludeColumns = ["id","create_time","update_time","create_by","update_by"]>
package ${pagePackageValue};

import ${package.Entity}.${table.entityName};
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
<#if entityLombokModel>
import lombok.Data;
</#if>

/**
 * @Description: ${table.comment!}实体
 * @Author: ${author}
 * @CreateDate: ${date}
 * @Version: 1.0.0
 * @Company: ${company}
 */
<#if entityLombokModel>
@Data
</#if>
public class ${pageName} extends Page<${table.entityName}>{

    /**
    * 搜索关键词
    */
    private String keyword;

    /**
    * 开始时间
    */
    private String beginTime;

    /**
    * 结束时间
    */
    private String endTime;

    /**
    * 排序规则：
    * 0-时间倒序 (默认)
    * 1-时间正序
    */
    private Integer sortType;

<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if field.keyFlag>
    <#assign keyPropertyName="${field.propertyName}"/>
    </#if>
    <#if !excludeColumns?seq_contains("${field.name}")>
    <#if field.comment!?length gt 0>
    <#if swagger2>
    @ApiModelProperty(value = "${field.comment}",name="${field.name}")
    <#else>
    /**
    * ${field.comment}
    */
    </#if>
    </#if>
<#-- 乐观锁注解 -->
    <#if (versionFieldName!"") == field.name>
    @Version
    </#if>
<#-- 逻辑删除注解 -->
    <#if (logicDeleteFieldName!"") == field.name>
    @TableLogic
    </#if>
    <#if field.propertyType == "LocalDateTime" || field.propertyType == "Timestamp">
    @JsonDeserialize(using = LocalDateTimeDeserializer.class)
    @JsonSerialize(using = LocalDateTimeSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    </#if>
    <#if field.propertyType == "LocalDate">
    @JsonDeserialize(using = LocalDateDeserializer.class)
    @JsonSerialize(using = LocalDateSerializer.class)
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    </#if>
    <#if field.propertyType == "Date">
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    </#if>
    <#if field.propertyType == "Timestamp">
    private LocalDateTime ${field.propertyName};

    </#if>
    <#if field.propertyType != "Timestamp">
    private ${field.propertyType} ${field.propertyName};

    </#if>
    </#if>
</#list>
<#------------  END 字段循环遍历  ---------->


}
